package com.sky.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Date;

//@Component
public class SpringTaskDemo {

    //@Scheduled(cron = "0/5 * * * * ?")
    public void testTask(){
        System.out.println("任务执行了了,当前时间是=>"+ LocalDateTime.now());
    }
}
